package com.hao.user.app.model.dto.address;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/5/25 21:23
 */
@Data
public class AddAddressRequest implements Serializable {
    private static final long serialVersionUID = 497056642938359108L;

    /**
     * 用户id
     */
    @NotNull
    @Min (1)
    private Long userId;

    /**
     * 地址所属省
     */
    @NotNull
    @NotBlank
    private String province;

    /**
     * 地址所属市
     */
    @NotNull
    @NotBlank
    private String city;

    /**
     * 县
     */
    @NotNull
    @NotBlank
    private String county;

    /**
     * 详细地址
     */
    @NotNull
    @NotBlank
    private String detail;

}
